import java.util.Scanner;

/**
 * @author gao
 * @date 2025/6/4 17:30
 */

class Point {
    private int x;
    private int y;

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}

class Circle {
    private Point center;
    private int radius;

    public void setCenter(int x,int y) {
        center.setX(x);
        center.setY(y);
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    public Circle() {
        this.center = new Point();
    }

    public void isPointInCircle(Point p) {
        if (Math.pow(center.getX() - p.getX(),2) + Math.pow(center.getY() - p.getY(),2) < radius * radius) {
            System.out.println("in");
        } else if (Math.pow(center.getX() - p.getX(),2) + Math.pow(center.getY() - p.getY(),2) == radius * radius) {
            System.out.println("on");
        } else {
            System.out.println("out");
        }
    }
}

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            int x = in.nextInt();
            int y = in.nextInt();

            Point p = new Point();
            p.setX(x);
            p.setY(y);

            Circle c = new Circle();
            c.setCenter(5,0);
            c.setRadius(5);

            c.isPointInCircle(p);
        }
    }
}